package com.ruoyi.produce.base.procedure.mapper;

import com.ruoyi.produce.base.procedure.domain.Procedure;

import java.util.List;

/**
 * 工序管理
 * 数据层
 * @author Drj 2021/6/28
 */
public interface ProcedureMapper {
    /**
     * 查询工序管理内容
     * @param procedure 条件
     * @return
     */
    public List<Procedure> selectProcedureList(Procedure procedure);

    /**
     * 查询指定编号对应的工序
     * @param procedureId
     * @return
     */
    public Procedure selectProcedureById(String procedureId);

    /**
     * 新增工序
     * @param procedure
     * @return
     */
    public int insertProcedure(Procedure procedure);

    /**
     * 更新工序
     * @param procedure
     * @return
     */
    public int updateProcedure(Procedure procedure);

    /**
     * 删除工序
     * 仅修改删除标志位
     * @param procedure
     * @return
     */
    public int updateProcedureDeleteFlag(Procedure procedure);
}
